package com.eedi.framework.dept.dal.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eedi.framework.common.enums.CommonStatusEnum;
import com.eedi.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门表
 *
 * @author 永聚长青源码
 */
@TableName("sys_dept")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDeptDO extends TenantBaseDO {

    public static final String PARENT_ID_ROOT = "0";


    @TableId(type = IdType.ASSIGN_UUID)
    private String sysDeptId;

    /**
     * 部门名称
     */
    private String sysDeptName;
    /**
     * 父部门ID
     *
     * 关联 {@link #sysDeptId}
     */
    private String parentSysDeptId;
    /**
     * 显示顺序
     */
    private Integer sysDeptSort;
    /**
     * 负责人
     *
     */
    private String sysDeptLeaderUserId;
    /**
     * 部门状态
     *
     * 枚举 {@link CommonStatusEnum}
     */
    private CommonStatusEnum sysDeptStatus;

}
